package com.castle.fortress.admin.temp.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
/**
 * 生成树示例 实体类
 *
 * @author 
 * @since 2023-08-03
 */
@Data
@TableName("temp_tree")
public class TempTreeEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 编码
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 名字
	*/
	private String name;
	/**
	 * 上级编码
	*/
	@JsonSerialize(using = ToStringSerializer.class)
    	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Long parentId;
	/**
	 * 所有上级
	*/
    	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String parents;

}
